tools/xenstore: add command line handling for live update
authorJuergen Gross <jgross@suse.com>
Wed, 13 Jan 2021 13:00:18 +0000 (14:00 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 21 Jan 2021 16:30:57 +0000 (17:30 +0100)
commit42f684d2ea6bfab74369c9e5974e1b0f3fa46c1a
treeadec551961999b25487757ba6084e70bd762248e
parente867af081d9418101ae85e716f9cacc4a7087bdd
tools/xenstore: add command line handling for live update

Updating an instance of Xenstore via live update needs to hand over
the command line parameters to the updated instance. Those can be
either the parameters used by the updated instance or new ones when
supplied when starting the live update.

So when supplied store the new command line parameters in lu_status.

As it is related add a new option -U (or --live-update") to the command
line of xenstored which will be added when starting the new instance.
This enables to perform slightly different initializations when
started as a result of live update.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.c